<template>
	<view class="header">
		<image
			class="avatar"
			:src="userInfo.avatar"
			mode="scaleToFill"
		/>
		<view class="nickName"> {{ `${userInfo.nickName}${userInfo.id}` }} </view>
	</view>
</template>

<script>
import { mapState } from 'vuex'
import systemAvatarList from '@/config/avatar.js';
export default {
	data() {
		return {
            systemAvatarList: [],
        };
	},
	methods: {},
	computed:{
		...mapState("userStore" , ['userInfo'])
	},
	watch: {},
    created() {
        this.systemAvatarList = systemAvatarList;
    },
};
</script>

<style lang="scss" scoped>
.header {
	padding-top: 100px;
	display: flex;
	flex-direction: column;
	align-items: center;

	.avatar {
		width: 196rpx;
		height: 196rpx;
		border-radius: 50%;
	}
	.nickName {
		margin-top: 36rpx;
		font-size: 32rpx;
		font-weight: 600;
	}
}
</style>
